#ifndef SCROLLAREA_H
#define SCROLLAREA_H

#include <qgraphicsview.h>
#include <qtimer.h>
class QMenu;

class ScrollArea : public QGraphicsView
{
    Q_OBJECT
public:
    explicit ScrollArea(QWidget *parent = 0);
	void setcmenu(QMenu *p);
private:
	bool rightKey,scrolled,intime;
	//void mouseDoubleClickEvent(QMouseEvent *);
	void mousePressEvent(QMouseEvent *);
	void wheelEvent(QWheelEvent *);
	void mouseReleaseEvent(QMouseEvent *);
	QMenu *cmenu;
signals:
	void next();
	void prev();
	void fullScreen();
	void sscale(int d);
	void showCmenu();
public slots:
	void timeout();
};

#endif // SCROLLAREA_H
